package com.vxdata.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author sunhongyun
 * @since 2023-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "WxUser对象", description = "")
public class WxUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "微信唯一标识")
    private String openId;

    @ApiModelProperty(value = "微信会话秘钥")
    private String sessionKey;

    @ApiModelProperty(value = "绑定手机号")
    private String phone;

    @ApiModelProperty(value = "系统用户有userName")
    private String userName;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    public WxUser(String openid, String sessionKey) {
        this.openId = openid;
        this.sessionKey = sessionKey;
    }

    public WxUser() {
    }
}
